using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Api.Demain.Entities
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("Role")]
    public class Role : BaseEntity
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(100)]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [StringLength(300)]
        public string? Description { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; } = false;
    }
} 